import http from "@/utils/http";
// 获取礼品列表
export const getGiftList = (params) => {
  return http.get("/auth/user/user/goods/page", params);
};
// 赏袋发货
export const sendGift = (data) => {
  return http.post("/auth/user/user/goods/ship", data);
};
// 创建赏袋订单
export const createOrder = (data) => {
  return http.post("/auth/user/user/goods/ship/order", data);
};
// 保险箱移入/移出
export const moveBox = (data) => {
  return http.post("/auth/user/user/goods/ship/box/safe", data);
};
// 赏品转换代币
export const exchangeCoin = (data) => {
  return http.post("/auth/user/user/goods/exchange/point", data);
};
// 转换规则
export const exchangeRule = () => {
  return http.get("/auth/user/user/goods/exchange");
};
